package org.theqcp.wow.sim.gui;

import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.SoftBevelBorder;

public class ESGStatusBar extends JPanel {

    private static final long serialVersionUID = -9124589486603188935L;

    protected JLabel statusLeft = new JLabel(" ");
    protected JLabel statusRight = new JLabel(" ");

    public ESGStatusBar() {
	setBorder(new SoftBevelBorder(SoftBevelBorder.LOWERED));
	setLayout(new BoxLayout(this, BoxLayout.X_AXIS));

	add(statusLeft);
	add(Box.createHorizontalGlue());
	add(statusRight);
    }

    public void clearStatusLeft() {
	statusLeft.setText(" ");
    }

    public String getStatusLeft() {
	return statusLeft.getText();
    }

    public void setStatusLeft( String statusText ) {
	statusLeft.setText(statusText);
    }

    public void clearStatusRight() {
	statusRight.setText(" ");
    }

    public String getStatusRight() {
	return statusRight.getText();
    }

    public void setStatusRight( String statusText ) {
	statusRight.setText(statusText);
    }

}
